package com.wanger.swc.util.template;

import cn.hutool.extra.template.TemplateUtil;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * @Author: wanger
 * @Date: 2024/9/16 2:35
 * @Description:
 */
@Slf4j
public class MyTemplateUtil {

    public static String fill(String template, Map<String, Object> data) {
        return TemplateUtil.createEngine()
                .getTemplate(template)
                .render(data);
    }

}
